package com.itheima.基础案例.Demo3;

import java.util.Arrays;

public class TestBook {
    public static void main(String[] args) {
        Book book1 = new Book("1", "怎样拐走朋友的老婆", 123.2);
        Book book2 = new Book("2", "剑指offer", 12.4);
        Book book3 = new Book("3", "java", 120.9);
        double price1 = book1.getPrice();
        double price2 = book2.getPrice();
        double price3 = book3.getPrice();
       double []arr={price1,price2,price3};
       Arrays.sort(arr);

    }
}
